package com.seal.tsms.school.entity;

import com.seal.tsms.base.entity.BaseEntity;

import javax.persistence.*;

/**
 * Created by zengzhen on 2016/1/20.
 * 学员基本信息
 */
@Entity
@Table(name = "student_infos")
public class StudentInfo extends BaseEntity {

    private String student_name;//姓名
    private String student_namespell;//姓名拼音
    private String gender;//性别
    private String getjobCity;//就业意向城市
    private String getjobStation;//就业意向岗位
    private String idcard;//身份证
    private  EducationInfo educationInfo =new EducationInfo();//教育背景
    private WorkInfo workInfo =new WorkInfo();//工作背景
    private RelationInfo relationInfo =new RelationInfo();//联系信息



    @Column(name="student_name")
    public String getStudent_name() {
        return student_name;
    }

    public void setStudent_name(String student_name) {
        this.student_name = student_name;
    }
    @Column(name="student_namespell")
    public String getStudent_namespell() {
        return student_namespell;
    }

    public void setStudent_namespell(String student_namespell) {
        this.student_namespell = student_namespell;
    }
    @Column(name="student_gender")
    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }
    @Column(name="student_getjobCity")
    public String getGetjobCity() {
        return getjobCity;
    }

    public void setGetjobCity(String getjobCity) {
        this.getjobCity = getjobCity;
    }
    @Column(name="student_getjobStation")
    public String getGetjobStation() {
        return getjobStation;
    }

    public void setGetjobStation(String getjobStation) {
        this.getjobStation = getjobStation;
    }

     @Column(name="student_Idcard")
    public String getIdcard() {
        return idcard;
    }

    public void setIdcard(String idcard) {
        this.idcard = idcard;
    }

    @ManyToOne(fetch = FetchType.LAZY,cascade = CascadeType.ALL)
    @JoinColumn(name = "educationinfo_id")
    public EducationInfo getEducationInfo() {
        return educationInfo;
    }

    public void setEducationInfo(EducationInfo educationInfo) {
        this.educationInfo = educationInfo;
    }

    @ManyToOne(fetch = FetchType.LAZY,cascade = CascadeType.ALL)
    @JoinColumn(name = "workinfo_id")
    public WorkInfo getWorkInfo() {
        return workInfo;
    }

    public void setWorkInfo(WorkInfo workInfo) {
        this.workInfo = workInfo;
    }

    @ManyToOne(fetch = FetchType.LAZY,cascade = CascadeType.ALL)
    @JoinColumn(name = "relationinfo_id")
    public RelationInfo getRelationInfo() {
        return relationInfo;
    }

    public void setRelationInfo(RelationInfo relationInfo) {
        this.relationInfo = relationInfo;
    }
}
